<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <!-- <script src="index.js"></script> -->
    <script>
      let aa = Symbol('a');
      let b = {
        [aa]: 1,
        b: 2,
      };
      Object.getPrototypeOf(b).c = 3;
      for (const key in b) {
        console.log(b.hasOwnProperty(key), key);
        console.log(key, 'log');
        console.log(b instanceof Object, 'log');
      }

      let c = [1, 2, 3, 4];
      for (key in c) {
        console.log(key, 'log');
      }

      for (value of c) {
        console.log(value, 'log');
      }

      // for (value of b) {
      //   console.log(value, 'log');
      // }

      console.log(Object.keys(b), 'log');
      console.log(Object.entries(b), 'log');
    </script>
  </body>
</html>
